#define _CRT_SECURE_NO_WARNINGS 1
int* masterMind(char* solution, char* guess, int* returnSize) {
    int i = 0;
    int* ret = (int*)calloc(2, sizeof(int));

    for (int i = 0; i < 4; ++i)
        if (solution[i] == guess[i]) {
            ++ret[0];
            solution[i] = 0;
            guess[i] = 0;
        }
    for (int i = 0; i < 4; ++i)
        for (int j = 0; j < 4; ++j)
            if (guess[i] && guess[i] == solution[j]) {
                guess[i] = 0;
                solution[j] = 0;
                ++ret[1];
            }


    *returnSize = 2;
    return ret;
}